package org.yty.travelagencymongodb.model.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseEntity {
    @MongoId
    private Long id;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
